<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Praca magisterska: Plik źródłowy C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/signalReaderWriter.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_eti_small.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Praca magisterska
   
   </div>
   <div id="projectbrief">Implementacja algorytmów filtracji adaptacyjnej o strukturze transwersalnej na platformie CUDA</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Wygenerowano przez Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
      <li><a href="globals.html"><span>Składowe&#160;plików</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('signal_reader_writer_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/signalReaderWriter.h</div>  </div>
</div>
<div class="contents">
<a href="signal_reader_writer_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef SIGNALREADERWRITER_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define SIGNALREADERWRITER_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="define_8h.html" title="Plik nagłówkowy ze zdefiniowanymi danymi.">define.h</a>&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="cudacomplex_8h.html" title="Implementacja obsługi liczb zespolonych.">cudacomplex.h</a>&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00017"></a>00017 
<a name="l00022"></a><a class="code" href="struct_signal_reader_writer.html">00022</a> <span class="keyword">struct </span><a class="code" href="struct_signal_reader_writer.html" title="Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.">SignalReaderWriter</a> {
<a name="l00023"></a><a class="code" href="struct_signal_reader_writer.html#a46dcf02abcf41209b6038e6243462cfb">00023</a>         cudacomplex *<a class="code" href="struct_signal_reader_writer.html#a46dcf02abcf41209b6038e6243462cfb" title="sygnał wejściowy (input)">u</a>; 
<a name="l00024"></a><a class="code" href="struct_signal_reader_writer.html#a2b204b3f72f3f4d8531e4bfe4cab70c2">00024</a>         cudacomplex *<a class="code" href="struct_signal_reader_writer.html#a2b204b3f72f3f4d8531e4bfe4cab70c2" title="sygnał odniesienia (desired)">d</a>; 
<a name="l00025"></a><a class="code" href="struct_signal_reader_writer.html#a2d23da95ac0e9d8bcfe6cd651f76a4b8">00025</a>         cudacomplex *<a class="code" href="struct_signal_reader_writer.html#a2d23da95ac0e9d8bcfe6cd651f76a4b8" title="sygnał wyściowy błędu (error)">e</a>; 
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="struct_signal_reader_writer.html#a91ac8a79f0e01facfa085fb37d1ee8f4">00027</a>         <span class="keywordtype">int</span> <a class="code" href="struct_signal_reader_writer.html#a91ac8a79f0e01facfa085fb37d1ee8f4" title="wielkość bloku">B</a>; 
<a name="l00028"></a>00028         
<a name="l00029"></a><a class="code" href="struct_signal_reader_writer.html#acc0f5d183017834876f1ea6fd43cde6a">00029</a>         <span class="keywordtype">long</span> <a class="code" href="struct_signal_reader_writer.html#acc0f5d183017834876f1ea6fd43cde6a" title="całkowita liczba próbek sygnałów">numberOfSamples</a>; 
<a name="l00030"></a>00030         <span class="comment">// TODO: liczba odczytanych próbek, przy odczytywaniu blokowym</span>
<a name="l00031"></a><a class="code" href="struct_signal_reader_writer.html#a0bf1b424ab98800b360b6d5598863dcf">00031</a>         <span class="keywordtype">int</span> <a class="code" href="struct_signal_reader_writer.html#a0bf1b424ab98800b360b6d5598863dcf" title="liczba odczytanych próbek, przy odczytywaniu blokowym">samplesRead</a>; 
<a name="l00032"></a>00032         <span class="comment">// TODO: liczba zapisanych próbek, przy zapisywaniu blokowym</span>
<a name="l00033"></a><a class="code" href="struct_signal_reader_writer.html#a0ffec1481ad86456a127b10f2c437d0e">00033</a>         <span class="keywordtype">int</span> <a class="code" href="struct_signal_reader_writer.html#a0ffec1481ad86456a127b10f2c437d0e" title="liczba zapisanych próbek, przy zapisywaniu blokowym">samplesWritten</a>; 
<a name="l00034"></a>00034 
<a name="l00042"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html">00042</a>         <span class="keyword">struct </span><a class="code" href="struct_signal_reader_writer_1_1_files.html" title="Wskaźniki do plików wejściowych i wyjściowych.">Files</a> {
<a name="l00043"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html#a49230b8202672d270127192c49f13939">00043</a>                 FILE *<a class="code" href="struct_signal_reader_writer_1_1_files.html#a49230b8202672d270127192c49f13939" title="plik z częścią rzeczywistą sygnału wejściowego u (input)">inputRealSignalFile</a>; 
<a name="l00044"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html#ad827f3a88c1c7abb014dee4627b4d021">00044</a>                 FILE *<a class="code" href="struct_signal_reader_writer_1_1_files.html#ad827f3a88c1c7abb014dee4627b4d021" title="plik z częścią urojoną sygnału wejściowego u (input)">inputImagSignalFile</a>; 
<a name="l00045"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html#af108b329f582261752ec6bcdb234e493">00045</a>                 FILE *<a class="code" href="struct_signal_reader_writer_1_1_files.html#af108b329f582261752ec6bcdb234e493" title="plik z częścią rzeczywistą sygnału wejściowego d (desired)">desiredRealSignalFile</a>; 
<a name="l00046"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html#a72ff71c2b195867004ee06873864c494">00046</a>                 FILE *<a class="code" href="struct_signal_reader_writer_1_1_files.html#a72ff71c2b195867004ee06873864c494" title="plik z częścią urojoną sygnału wejściowego d (desired)">desiredImagSignalFile</a>; 
<a name="l00047"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html#a73c4418eb75d7414451f9b69e2dc5c79">00047</a>                 FILE *<a class="code" href="struct_signal_reader_writer_1_1_files.html#a73c4418eb75d7414451f9b69e2dc5c79" title="plik z częścią rzeczywistą sygnału wyjściowego e (error)">errorRealSignalFile</a>; 
<a name="l00048"></a><a class="code" href="struct_signal_reader_writer_1_1_files.html#afc2e353618441d16906ed7d3d8ae8f54">00048</a>                 FILE *<a class="code" href="struct_signal_reader_writer_1_1_files.html#afc2e353618441d16906ed7d3d8ae8f54" title="plik z częścią urojoną sygnału wyjściowego e (error)">errorImagSignalFile</a>; 
<a name="l00049"></a>00049         } <a class="code" href="struct_signal_reader_writer.html#a64302ec2cbfca1b99bb7956698fb2f12" title="wskaźniki do plików wejściowych i wyjściowych">files</a>; 
<a name="l00050"></a>00050 
<a name="l00058"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html">00058</a>         <span class="keyword">struct </span><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html" title="Ścieżki do plików wejściowych i wyjściowych.">Filepaths</a>{
<a name="l00059"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a1c16d653a9b7981e9347bf1cb773304a">00059</a>                 <span class="keywordtype">char</span> <a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a1c16d653a9b7981e9347bf1cb773304a" title="ścieżka do pliku z częścią rzeczywistą sygnału wejściowego u (input)">inputRealSignalFilepath</a>[512]; 
<a name="l00060"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a45e18562ede9e98dda90fa0a5e33bc37">00060</a>                 <span class="keywordtype">char</span> <a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a45e18562ede9e98dda90fa0a5e33bc37" title="ścieżka do pliku z częścią urojoną sygnału wejściowego u (input)">inputImagSignalFilepath</a>[512]; 
<a name="l00061"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a2c88ac10c1b267d93ac1b9074554019c">00061</a>                 <span class="keywordtype">char</span> <a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a2c88ac10c1b267d93ac1b9074554019c" title="ścieżka do pliku z częścią rzeczywistą sygnału wejściowego d (desired)">desiredRealSignalFilepath</a>[512]; 
<a name="l00062"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a0ee16854621de5684ea8899fa7703b41">00062</a>                 <span class="keywordtype">char</span> <a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a0ee16854621de5684ea8899fa7703b41" title="ścieżka do pliku z częścią urojoną sygnału wejściowego d (desired)">desiredImagSignalFilepath</a>[512]; 
<a name="l00063"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a317193306337b570ed9dbf0bf2073aae">00063</a>                 <span class="keywordtype">char</span> <a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#a317193306337b570ed9dbf0bf2073aae" title="ścieżka do pliku z częścią rzeczywistą sygnału wyjściowego e (error)">errorRealSignalFilepath</a>[512]; 
<a name="l00064"></a><a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#acb41cfd0be6e8917a3af5ef15b10a0de">00064</a>                 <span class="keywordtype">char</span> <a class="code" href="struct_signal_reader_writer_1_1_filepaths.html#acb41cfd0be6e8917a3af5ef15b10a0de" title="ścieżka do pliku z częścią urojoną sygnału wyjściowego e (error)">errorImagSignalFilepath</a>[512]; 
<a name="l00065"></a>00065         } <a class="code" href="struct_signal_reader_writer.html#ac4ccc40051d7110691bec3f94bb174fa" title="ścieżki do plików wejściowych i wyjściowych.">filepaths</a>; 
<a name="l00066"></a>00066 
<a name="l00079"></a>00079         <a class="code" href="struct_signal_reader_writer.html#a4d572fa1e3bfc3cdbc3ee09b4a79dc8d">SignalReaderWriter</a>(<span class="keywordtype">char</span> *inputSignalFilepath, <span class="keywordtype">char</span> *desiredSignalFilepath, <span class="keywordtype">int</span> Bsize);
<a name="l00080"></a>00080 
<a name="l00084"></a>00084         <a class="code" href="struct_signal_reader_writer.html#aa1fb4433892c7198331319455c740829">~SignalReaderWriter</a>();
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 
<a name="l00087"></a>00087         <span class="comment">// TODO: odczytywanie blokowe, jak i czy zrobić?</span>
<a name="l00093"></a>00093 <span class="comment"></span>        <span class="keywordtype">void</span> <a class="code" href="struct_signal_reader_writer.html#aa1b412ffbdc6c1beed967666ff21687f">readInputBlocks</a>();
<a name="l00094"></a>00094 
<a name="l00095"></a>00095         <span class="comment">// TODO: zapisywanie blokowe, jak i czy zrobić?</span>
<a name="l00102"></a>00102 <span class="comment"></span>        <span class="keywordtype">void</span> <a class="code" href="struct_signal_reader_writer.html#a7b4182774269aea762ba7dc31a81a82a">writeErrorBlock</a>(cudacomplex *buf);
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 
<a name="l00111"></a>00111         <span class="keywordtype">void</span> <a class="code" href="struct_signal_reader_writer.html#ae1012e64eb123e6d7a10ce3c6602b588">readInputSignals</a>();
<a name="l00112"></a>00112 
<a name="l00120"></a>00120         <span class="keywordtype">void</span> <a class="code" href="struct_signal_reader_writer.html#aff17d6998f6ff119684556f827330683">writeErrorSignal</a>(<span class="keywordtype">char</span> *errorSignalFilepath);
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 
<a name="l00128"></a>00128         <span class="keywordtype">void</span> <a class="code" href="struct_signal_reader_writer.html#a1fb12863e48b8ab9fcc9b3d1ce25d8b5">freeMemory</a>();
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 };
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="preprocessor">#endif </span><span class="comment">/* SIGNALREADERWRITER_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="signal_reader_writer_8h.html">signalReaderWriter.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Wygenerowano Wed Nov 23 2011 12:30:13 dla Praca magisterska programem
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
